﻿@model TuanAnhPersonalWeb.Models.ContentModel
           
@using (Ajax.BeginForm("Search", "Content", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "divGrid", OnBegin = "beginPaging", OnSuccess = "successPaging" }, new { name = "formSearch" }))
{ 
    <table>
    <tr>
    <td>
    <div class="editor-label">
            @Html.LabelFor(model => model.TYPE)
        </div>
        <div class="editor-field">
          @Html.DropDownListFor(model => model.TYPE_ID, ViewData["Type"] as SelectList, new { style = "width:160px", id = "_AlbumDDL", onchange = "submit_form()" })
           @Html.ValidationMessageFor(model => model.TYPE_ID)
        </div>
    </td>
    
        </tr>
    </table>
   <table>
    <tr>
        <td>
            <fieldset>
                <legend>Search by: </legend>
                @Html.RadioButton("keySearch", "code", true) Description
                @Html.TextBox("valSearch", "")
                <input type="submit" value="Search" id="btnSubmit" />
            </fieldset>
        </td>
    </tr>
   </table>
    <script type="text/javascript">
        function submit_form() {
            var btn = document.getElementById("btnSubmit");
            btn.click();
        }
        </script>
}



 
   